package com.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

@Data
public class PatientBank {

  //private Long bankId;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Timestamp updateTime;
  //private String bankName;
 // private String sex;
  private Integer age;
  private String idNumber;
 // private String phone;
  //private String rightVision;
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Timestamp birthday;
  private Integer personalBankId;
 // private String allergicHistory;


  @ApiModelProperty(name = "bankId",notes = "患者Id",dataType = "Long",required = false)
  private Long bankId;

  @ApiModelProperty(name = "bankName",notes = "患者姓名",dataType = "String",required = true)
  private String bankName;

  @ApiModelProperty(name = "sex",notes = "患者性别",dataType = "String",required = true)
  private String sex;

  @ApiModelProperty(name = "phone",notes = "电话",dataType = "String",required = true)
  private String email;

  @ApiModelProperty(name = "rightVision",notes = "住址",dataType = "String",required = false)
  private String rightVision;

  @ApiModelProperty(name = "allergicHistory",notes = "过敏史",dataType = "String",required = false)
  private String allergicHistory;


}
